home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.02 Feb 94 / THINK Top 10 / TRegionTest.cp < prev    next >
Encoding:
Text File  |  1995-07-29  |  151 b   |  15 lines  |  [TEXT/KAHL]

  1. #include "TRegion.h"
  2.  
  3. TRegion        a, b, c, d;
  4.  
  5.  
  6. void main()
  7. {
  8.     Rect    r = {20, 20, 200, 200};
  9.     
  10.     a = r;
  11.     b = a;
  12.     b.Offset(20, 20);
  13.     c = a - b;
  14.     d = a + b;
  15. }